<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>档案 - 查询</title>
<!--[if lt IE 9]>
  <script src="libs/html5shiv.min.js"></script>
  <script src="libs/respond.min.js"></script>
  <![endif]-->
<script type="text/javascript" src="libs/handlebars.min.js"></script>
<script src="libs/jquery-1.12.1.min.js"></script>
<script src="libs/getQueryString.js"></script>
<link href="libs/bootstrap-3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="libs/bootstrap-3.3.6/js/bootstrap.min.js"></script>
<script src="libs/dateFormat.js"></script>
<script src="libs/identity.js"></script>
</head>
<body>

	<div class="container">
		<div class="row">
			<div class="col-md-12 page-header">
				<h2 class="text-center">
					档案<br /> <small>查询</small>
				</h2>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-md-4 ">
				<div class="form-group">
					<label for="archive_id">档案号</label> <input type="text"
						class="form-control" id="archive_id" />
				</div>
				<div class="form-group">
					<label for="identity">身份证</label> <input type="text"
						class="form-control" id="identity" />
				</div>
				<div class="form-group">
					<label for="name">姓名</label> <input type="text"
						class="form-control" id="name" />
				</div>
				<div class="form-group">
					<label for="gender">性别</label> <input type="text"
						class="form-control" id="gender" />
				</div>
				<div class="form-group">
					<label for="birthday">出生日期</label> <input type="date"
						class="form-control" id="birthday" />
				</div>
				<div class="form-group">
					<label for="date_retire1">预退休日期</label> <input type="date"
						class="form-control" id="date_retire1" />
				</div>
				<div class="form-group">
					<label for="date_retire2">实退休时间</label> <input type="date"
						class="form-control" id="date_retire2" />
				</div>
					
				<div class="form-group">
					<label for="sp">特殊工种</label> <input type="text"
						class="form-control" id="sp" />
				</div>
				<div class="form-group">
					<label for="fc">女管理岗位</label> <input type="text"
						class="form-control" id="fc" />
				</div>
				<div class="form-group">
					<label for="title">职称</label> <input type="text"
						class="form-control" id="title" />
				</div><div class="form-group">
					<label for="seniority">工龄</label> <input type="text"
						class="form-control" id="seniority" />
				</div>
				
				<button id="add" class="btn btn-primary btn-block">添加档案</button>
			
		




		

		<script type="text/javascript">
			$(function() {

				$('#add').click(function() {

					$.post('add.action', {
						archive_id : $('#archive_id').val(),
						identity : $('#identity').val(),
						name : $('#name').val(),
						gender : $('#gender').val(),
						birthday : $('#birthday').val(),
						date_retire1 : $('#date_retire1').val(),
						date_retire2 : $('#date_retire2').val(),
						sp : $('#sp').val(),
						fc : $('#fc').val(),
						title : $('#title').val(),
						seniority : $('#seniority').val()
					}, function(res, status) {
						if (!'REE' == res) {
							alert('身份证号码或档案号已存在');
						} else if ('OK' == res) {
						window.location.href = 'index.html';
						}				
					});
				});
			});
		</script>
		</script>
	
		<body>
</html>